@page
@using MultiAgentsServer.Pages
@model ModelConfigurationModel
@{
    ViewData["Title"] = "Model Configuration";
}

<div style="display: flex; height: 100vh;">
    <nav style="width: 200px; background: #f8f9fa; padding: 10px; height: 100vh; position: fixed; left: 0; top: 56px; z-index: 1000;">
        <ul style="padding: 0; list-style: none;">
            <li><a asp-page="UserPermissionManagement" style="cursor: pointer;">User Authority</a></li>
            <li><a asp-page="InviteManager" style="cursor: pointer;">Invite Code</a></li>
            <li><a asp-page="DefaultModelsManagement" style="cursor: pointer;">Model Configuration</a></li>
        </ul>
    </nav>
    <div style="margin-left: 200px; padding: 20px; flex-grow: 1;">
        <h2>Model Configuration</h2>
        <form method="post">
            <div>
                <label>LLM Switch Node Model:</label>
                    <select asp-for="LLMSwitchNodeModel">
                        @foreach (var modelName in Model.GptModelList)
                        {
                        <option value="@modelName">@modelName</option>
                        }
                    </select>
            </div>
            <div>
                <label>Param Extraction Node Model:</label>
                <select asp-for="ParameterExtractionNodeModel">
                    @foreach (var modelName in Model.GptModelList)
                    {
                        <option value="@modelName">@modelName</option>
                    }
                </select>
            </div>
            <div>
                <label>Chatroom Rename Model:</label>
                <select asp-for="RenameChatRoomModel">
                    @foreach (var modelName in Model.GptModelList)
                    {
                        <option value="@modelName">@modelName</option>
                    }
                </select>
            </div>
            <div>
                <label>Reply Assistant Model:</label>
                <select asp-for="ReplyAssistantModel">
                    @foreach (var modelName in Model.GptModelList)
                    {
                        <option value="@modelName">@modelName</option>
                    }
                </select>
            </div>
            <div>
                <label>Default Agent Model:</label>
                <select asp-for="DefaultAgentModel">
                    @foreach (var modelName in Model.GptModelList)
                    {
                        <option value="@modelName">@modelName</option>
                    }
                </select>
            </div>
            <div>
                <label>Git Operator Agent Model:</label>
                <select asp-for="GitOperatorAgentModel">
                    @foreach (var modelName in Model.GptModelList)
                    {
                        <option value="@modelName">@modelName</option>
                    }
                </select>
            </div>
            <div>
                <label>Octo Helper Agent Model:</label>
                <select asp-for="OctoHelperAgentModel">
                    @foreach (var modelName in Model.GptModelList)
                    {
                        <option value="@modelName">@modelName</option>
                    }
                </select>
            </div>
            <div>
                <button type="submit">Save Configuration</button>
            </div>
        </form>
    </div>
</div>
